<%= form_tag({}, :id => 'mainForm') do %>                    

		<table class="full">
			<thead>
				<tr>
					<th>
					<input class="checkbox select-all" type="checkbox" /></th>
					<th width="50%">News</th>
				        <th>Status</th>
					<th>Event</th>
					<th>Controls</th>
				</tr>

			</thead>
			<tfoot>
				<tr>
					<td colspan="5">
					<div class="bulk-actions">
						<select name="dropdown_action" class="dropdown_action">
								<option value="non">Choose an action...</option>
								<option value="delete">Delete</option>
						</select>
						<input type="button" class="button" onclick="doSelectedAction('<%= url_for({:action => "delete_selected"}) %>');" value="Apply to selected" />
					</div>
					
						
						<%= will_paginate(@news, :renderer => "PaginationListLinkRenderer") %>
			
					
		
					<!-- End .pagination -->
					<div class="clear">
					</div>
					</td>
				</tr>
			</tfoot>
			<tbody class="tooltip-enabled">
				<% @news.each do |item| %>
				<tr>
					<td>
						<input type="checkbox" class="checkbox" name="ids[<%= item.id %>]" />						
					</td>
		
					<td>
						<h5><%= link_to item.title, url_for({:action => 'show', :id => item.id}),"original-title" => 'View Details' %></h5>
					</td>
					
					<td>
						<%= item.news_status.title if !item.news_status.nil? %>
					</td>
					
					<td>
						<%= link_to item.event.title, item.event, "original-title" => 'View' if !item.event.nil? %>
					</td>
					<td>
			
					  
								<%= link_to image_tag("icons/edit.png",
												:border=>0,
												:title => 'Edit'),
												url_for({:action => 'edit', :id => item.id}),
												"original-title" => 'Edit' %>
								<span class="delete">
								<%= link_to image_tag("icons/delete.png",
												:border=>0,
												:title => 'Edit'),
												url_for({:action => 'destroy', :id => item.id}),
												"original-title" => 'Delete',
												:confirm => 'Are you want to delete this article !' %>
								</span>							
						
					</td>
				</tr>
				<% end %>
			</tbody>
		</table>
						  
<% end %>				    